package com.zvan.controller;

import com.zvan.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhangv on 2017/9/26.
 */
@RestController
public class HiController {
    @Autowired
    HiService hiService;

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    public String sayHi() {

        return hiService.sayHi();

    }

}
